﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Rsa
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Elysium.Controls.Window
    {
        GestorConfigXML Gxml;
        public MainWindow()
        {
            InitializeComponent();
            this.iniciarTabs();
            verificaXSD();
        }

        private void verificaXSD()
        {
            Gxml.validarXSD();
        }

        private void iniciarTabs()
        {
            Gxml = new GestorConfigXML();

            LancarThreads lt = new LancarThreads(Gxml);

            Configuracao cf = new Configuracao(Gxml);
            caixaConfig.Child = cf;

            JanelaLista jl = new JanelaLista();
            jl.Lancar = lt;
            caixaJanelaLista.Child = jl;


            JanelaTwitter jt = new JanelaTwitter(Gxml);
            jt.Lancar = lt;
            caixaJanelaListaTwitter.Child = jt;

            JanelaEmail je = new JanelaEmail(Gxml);
            je.Lancar = lt;
            caixaJanelaListaEmail.Child = je;

            JanelaFacebook jf = new JanelaFacebook(Gxml);
            je.Lancar = lt;
            caixaJanelaListaFacebook.Child = jf;
         
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
